/**
 * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package it.apuliait.model;

import com.liferay.portal.kernel.util.Validator;
import com.liferay.portal.model.ModelWrapper;

import java.util.HashMap;
import java.util.Map;

/**
 * <p>
 * This class is a wrapper for {@link DocumentoXml}.
 * </p>
 *
 * @author Donatello
 * @see DocumentoXml
 * @generated
 */
public class DocumentoXmlWrapper implements DocumentoXml,
	ModelWrapper<DocumentoXml> {
	public DocumentoXmlWrapper(DocumentoXml documentoXml) {
		_documentoXml = documentoXml;
	}

	@Override
	public Class<?> getModelClass() {
		return DocumentoXml.class;
	}

	@Override
	public String getModelClassName() {
		return DocumentoXml.class.getName();
	}

	@Override
	public Map<String, Object> getModelAttributes() {
		Map<String, Object> attributes = new HashMap<String, Object>();

		attributes.put("documentoXmlId", getDocumentoXmlId());
		attributes.put("documentoIDFK", getDocumentoIDFK());
		attributes.put("annoCreazione", getAnnoCreazione());
		attributes.put("documentoXml", getDocumentoXml());

		return attributes;
	}

	@Override
	public void setModelAttributes(Map<String, Object> attributes) {
		Long documentoXmlId = (Long)attributes.get("documentoXmlId");

		if (documentoXmlId != null) {
			setDocumentoXmlId(documentoXmlId);
		}

		Long documentoIDFK = (Long)attributes.get("documentoIDFK");

		if (documentoIDFK != null) {
			setDocumentoIDFK(documentoIDFK);
		}

		String annoCreazione = (String)attributes.get("annoCreazione");

		if (annoCreazione != null) {
			setAnnoCreazione(annoCreazione);
		}

		String documentoXml = (String)attributes.get("documentoXml");

		if (documentoXml != null) {
			setDocumentoXml(documentoXml);
		}
	}

	/**
	* Returns the primary key of this documento xml.
	*
	* @return the primary key of this documento xml
	*/
	@Override
	public long getPrimaryKey() {
		return _documentoXml.getPrimaryKey();
	}

	/**
	* Sets the primary key of this documento xml.
	*
	* @param primaryKey the primary key of this documento xml
	*/
	@Override
	public void setPrimaryKey(long primaryKey) {
		_documentoXml.setPrimaryKey(primaryKey);
	}

	/**
	* Returns the documento xml ID of this documento xml.
	*
	* @return the documento xml ID of this documento xml
	*/
	@Override
	public long getDocumentoXmlId() {
		return _documentoXml.getDocumentoXmlId();
	}

	/**
	* Sets the documento xml ID of this documento xml.
	*
	* @param documentoXmlId the documento xml ID of this documento xml
	*/
	@Override
	public void setDocumentoXmlId(long documentoXmlId) {
		_documentoXml.setDocumentoXmlId(documentoXmlId);
	}

	/**
	* Returns the documento i d f k of this documento xml.
	*
	* @return the documento i d f k of this documento xml
	*/
	@Override
	public long getDocumentoIDFK() {
		return _documentoXml.getDocumentoIDFK();
	}

	/**
	* Sets the documento i d f k of this documento xml.
	*
	* @param documentoIDFK the documento i d f k of this documento xml
	*/
	@Override
	public void setDocumentoIDFK(long documentoIDFK) {
		_documentoXml.setDocumentoIDFK(documentoIDFK);
	}

	/**
	* Returns the anno creazione of this documento xml.
	*
	* @return the anno creazione of this documento xml
	*/
	@Override
	public java.lang.String getAnnoCreazione() {
		return _documentoXml.getAnnoCreazione();
	}

	/**
	* Sets the anno creazione of this documento xml.
	*
	* @param annoCreazione the anno creazione of this documento xml
	*/
	@Override
	public void setAnnoCreazione(java.lang.String annoCreazione) {
		_documentoXml.setAnnoCreazione(annoCreazione);
	}

	/**
	* Returns the documento xml of this documento xml.
	*
	* @return the documento xml of this documento xml
	*/
	@Override
	public java.lang.String getDocumentoXml() {
		return _documentoXml.getDocumentoXml();
	}

	/**
	* Sets the documento xml of this documento xml.
	*
	* @param documentoXml the documento xml of this documento xml
	*/
	@Override
	public void setDocumentoXml(java.lang.String documentoXml) {
		_documentoXml.setDocumentoXml(documentoXml);
	}

	@Override
	public boolean isNew() {
		return _documentoXml.isNew();
	}

	@Override
	public void setNew(boolean n) {
		_documentoXml.setNew(n);
	}

	@Override
	public boolean isCachedModel() {
		return _documentoXml.isCachedModel();
	}

	@Override
	public void setCachedModel(boolean cachedModel) {
		_documentoXml.setCachedModel(cachedModel);
	}

	@Override
	public boolean isEscapedModel() {
		return _documentoXml.isEscapedModel();
	}

	@Override
	public java.io.Serializable getPrimaryKeyObj() {
		return _documentoXml.getPrimaryKeyObj();
	}

	@Override
	public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
		_documentoXml.setPrimaryKeyObj(primaryKeyObj);
	}

	@Override
	public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
		return _documentoXml.getExpandoBridge();
	}

	@Override
	public void setExpandoBridgeAttributes(
		com.liferay.portal.model.BaseModel<?> baseModel) {
		_documentoXml.setExpandoBridgeAttributes(baseModel);
	}

	@Override
	public void setExpandoBridgeAttributes(
		com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
		_documentoXml.setExpandoBridgeAttributes(expandoBridge);
	}

	@Override
	public void setExpandoBridgeAttributes(
		com.liferay.portal.service.ServiceContext serviceContext) {
		_documentoXml.setExpandoBridgeAttributes(serviceContext);
	}

	@Override
	public java.lang.Object clone() {
		return new DocumentoXmlWrapper((DocumentoXml)_documentoXml.clone());
	}

	@Override
	public int compareTo(DocumentoXml documentoXml) {
		return _documentoXml.compareTo(documentoXml);
	}

	@Override
	public int hashCode() {
		return _documentoXml.hashCode();
	}

	@Override
	public com.liferay.portal.model.CacheModel<DocumentoXml> toCacheModel() {
		return _documentoXml.toCacheModel();
	}

	@Override
	public DocumentoXml toEscapedModel() {
		return new DocumentoXmlWrapper(_documentoXml.toEscapedModel());
	}

	@Override
	public DocumentoXml toUnescapedModel() {
		return new DocumentoXmlWrapper(_documentoXml.toUnescapedModel());
	}

	@Override
	public java.lang.String toString() {
		return _documentoXml.toString();
	}

	@Override
	public java.lang.String toXmlString() {
		return _documentoXml.toXmlString();
	}

	@Override
	public void persist()
		throws com.liferay.portal.kernel.exception.SystemException {
		_documentoXml.persist();
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj) {
			return true;
		}

		if (!(obj instanceof DocumentoXmlWrapper)) {
			return false;
		}

		DocumentoXmlWrapper documentoXmlWrapper = (DocumentoXmlWrapper)obj;

		if (Validator.equals(_documentoXml, documentoXmlWrapper._documentoXml)) {
			return true;
		}

		return false;
	}

	/**
	 * @deprecated As of 6.1.0, replaced by {@link #getWrappedModel}
	 */
	public DocumentoXml getWrappedDocumentoXml() {
		return _documentoXml;
	}

	@Override
	public DocumentoXml getWrappedModel() {
		return _documentoXml;
	}

	@Override
	public void resetOriginalValues() {
		_documentoXml.resetOriginalValues();
	}

	private DocumentoXml _documentoXml;
}